function SearchWrite(Search, Write, Type) gg.clearResults() gg.setVisible(false) gg.searchNumber(Search[1][1], Type) local count = gg.getResultCount() local result = gg.getResults(count) gg.clearResults() local data = {} local base = Search[1][2] 
if (count > 0) 
 then for i, v in ipairs(result) do v.isUseful = true 
 end
 for k=2, #Search do local tmp = {} local offset = Search[k][2] - base local num = Search[k][1] for i, v in ipairs(result) do tmp[#tmp+1] = {} tmp[#tmp].address = v.address + offset tmp[#tmp].flags = v.flags 
  end
 tmp = gg.getValues(tmp) for i, v in ipairs(tmp) do 
  if ( v.value ~= num ) 
   then result[i].isUseful = false 
  end
 end
end
 for i, v in ipairs(result) do 
  if (v.isUseful) 
   then data[#data+1] = v.address 
  end 
 end
if (#data > 0) 
then local t = {} local base = Search[1][2] for i=1, #data do for k, w in ipairs(Write) do offset = w[2] - base t[#t+1] = {} t[#t].address = data[i] + offset t[#t].flags = Type t[#t].value = w[1] 
 if (w[3] == true) 
  then local item = {} item[#item+1] = t[#t] item[#item].freeze = true gg.addListItems(item) 
 end
end
 
end
 gg.setValues(t) gg.toast(Name.."开启成功！") gg.addListItems(t) 
else gg.toast(Name.."开启失败！", false) return false 
end
 
end
end

function a1()
Name="开启双🧵"
gg.setRanges(4)
local SS={{1.25,0}, {1.25,4}, {1,240}, {0,272}, {1,336}, {9999,448}, {9999,452}}
local XG={{999,240},{999,336}}
local Type = 16
SearchWrite(SS,XG,Type)
end

function a11()
Name="关闭双🧵"
gg.setRanges(4)
local SS={{1.25,0}, {1.25,4}, {999,240}, {0,272}, {999,336}, {9999,448}, {9999,452}}
local XG={{1,240},{1,336}}
local Type = 16
SearchWrite(SS,XG,Type)
end

function a2()
Name="开启1.5倍力度👊🏻"
gg.clearResults()
	 gg.setRanges(gg.REGION_C_ALLOC)
	 gg.searchNumber("180D;176D;1065353216D;1F::39h", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("1", gg.TYPE_FLOAT)
	 gg.getResults(10)
	 gg.editAll("1.5", gg.TYPE_FLOAT)
	 gg.toast("开启1.5倍力度👊🏻成功")
	 gg.clearResults()
end

function a22()
Name="关闭1.5倍力度👊🏻"
gg.clearResults()
	 gg.setRanges(gg.REGION_C_ALLOC)
	 gg.searchNumber("180D;176D;1065353216D;1.5F::39h", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("1.5", gg.TYPE_FLOAT)
	 gg.getResults(10)
	 gg.editAll("1", gg.TYPE_FLOAT)
	 gg.toast("⛔已关闭1.5倍力度👊🏻")
	 gg.clearResults()
end

function a3()
Name="单开主线🧵ing"
gg.setRanges(4)
local SS={{1.25,0}, {1.25,4}, {0,272}, {9999,448}, {9999,452}}
local XG={{999,336}}
local Type = 16
SearchWrite(SS,XG,Type)
end

function a33()
Name="关闭主线🧵ing"
gg.setRanges(4)
local SS={{1.25,0}, {1.25,4}, {0,272}, {9999,448}, {9999,452}}
local XG={{1,336}}
local Type = 16
SearchWrite(SS,XG,Type)
end

function yeho() SN = gg.choice({"一键开启双🧵","一键关闭双🧵","开启1.5倍力度👊🏻","关闭1.5倍力度👊🏻","单开主线🧵ing","关闭主线🧵ing","退出脚本","qq226222413"})
if SN == 1 
 then a1() 
end
if SN == 2 
 then a11() 
end
if SN == 3
 then a2() 
end
if SN == 4 
 then a22() 
end
if SN == 5
 then a3() 
end
if SN == 6 
 then a33() 
end
if SN == 7
 then os.exit()
end
bt=-1
end
while true do
  if gg.isVisible(true) then
    bt = 1
    gg.setVisible(false)
  end
  gg.clearResults()
  if bt == 1 then
    yeho()
  end
end